From: Jochen Sprickerhof Date: Sat, 8 Dec 2018 09:43:17 +0000 (+0100) Subject: Reduce parallel on mips* as they go OOM X-Git-Tag: archive/raspbian/1.14.0+dfsg-2+rpi1^2~121 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=7a23fefc4ed02069ef915d9c97b93a6f1015af80;p=pcl.git Reduce parallel on mips* as they go OOM --- diff --git a/debian/rules b/debian/rules index f99cfd30..87770831 100755 --- a/debian/rules +++ b/debian/rules @@ -13,8 +13,11 @@ CXXFLAGS+=$(CPPFLAGS) BUILD_DOC = $(if $(shell dh_listpackages | grep libpcl-doc),-DWITH_DOCS=ON) -# Multiarch. -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel)) + PARALLEL=--max-parallel=2 +else + PARALLEL= +endif .PHONY: override_dh_auto_configure \ override_dh_install \ @@ -89,4 +92,4 @@ override_dh_installchangelogs: %: - dh $@ --builddirectory=build + dh $@ $(PARALLEL) --builddirectory=build